package com.news.wemedia.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.news.model.common.dtos.ResponseResult;
import com.news.model.wemedia.dtos.WmChannelDto;
import com.news.model.wemedia.pojos.WmChannel;

public interface WmChannelService extends IService<WmChannel> {

    /**
     * 查询所有频道
     * @return
     */
    public ResponseResult findAll();

    /**
     * 频道名称模糊分页查询
     * @param wmChannelDto
     * @return
     */
    ResponseResult listPage(WmChannelDto wmChannelDto);

    /**
     * 新增频道
     * @param wmChannel
     * @return
     */
    ResponseResult saveOne(WmChannel wmChannel);

    /**
     * 删除 频道
     * @param id
     * @return
     */
    ResponseResult delOne(Integer id);

    /**
     * 修改频道
     * @param wmChannel
     * @return
     */
    ResponseResult updateOne(WmChannel wmChannel);
}